package com.boxing.bean;

public class ResponseData {
    private int code;
    private String msg;
    private Data data;

    public ResponseData() {
    }

    public ResponseData(int code, String msg, Data data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data{
        /**
         * 1: 用户名和密码是合法的； 0：用户名或密码不合法
         */
        private int succ;

        /**
         * 令牌  服务器端的一个随机字符串或者是一个加密串
         */
        private String token;

        public Data() {
        }

        public Data(int succ, String token) {
            this.succ = succ;
            this.token = token;
        }

        public int getSucc() {
            return succ;
        }

        public void setSucc(int succ) {
            this.succ = succ;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }
    }
}
